package com.sfcms.provider.contoller;

import com.sfcms.provider.service.NewsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class NewsContoller {

    @Autowired
    NewsService newsService;

    @GetMapping("/findAll")
    public String findAll() {
        return newsService.findNewsByTitle("test").toString();
    }
}
